package com.nervenets.web.redis.domain.user;

import com.nervenets.web.redis.RedisOrderedSetDomain;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 支付总金额排行
 * Created by Joe on 2018/3/7.
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class MovieBuyMoney extends RedisOrderedSetDomain {
    private long money;
    private long movieId;

    @Override
    public double getOrderedValue() {
        return money;
    }

    @Override
    public String getField() {
        return String.valueOf(movieId);
    }

    @Override
    public String getKey() {
        return "MOVIE_BUY_MONEY";
    }
}
